<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>

<s:layout-definition>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><f:message key="${title}" /> <f:message key="frontend.title" /></title>    
    <link href="${pageContext.request.contextPath}/frontend/css/templatemo_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="templatemo_container">	
    <div id="templatemo_header">
        <div id="website_title">
            <div id="title"><f:message key="frontend.projectName" /></div>
            <div id="salgon"><f:message key="frontend.global.slogan" /></div>
        </div>
    </div> <!-- end of header -->

    <div id="templatemo_banner">
        <div id="templatemo_menu">
            <ul>
                <li><s:link beanclass="cz.muni.fi.pa165.bookingmanager.web.FrontEndActionBean" ><f:message key="frontend.menu.home" /></s:link></li>
                <li><s:link beanclass="cz.muni.fi.pa165.bookingmanager.web.FrontEndActionBean" event="hotelsList"><f:message key="frontend.menu.hotels" /></s:link></li>               
                <li><s:link beanclass="cz.muni.fi.pa165.bookingmanager.web.FrontEndActionBean" event="advancedSearch"><f:message key="frontend.menu.advanced_search" /></s:link></li>
                <li><s:link beanclass="cz.muni.fi.pa165.bookingmanager.web.CustomerActionBean" class="last"><f:message key="global.admin" /></s:link></li>
            </ul> 
        </div>    
    </div> <!-- end of banner -->

    <div id="templatemo_content">
        <div id="content_left">
            <div class="content_left_section">
                <div class="content_title_01"><f:message key="frontend.quick_search" /></div>
                
                <s:form action="/frontend/quickSearch" method="post">                    
                    <div class="form_row">
                        <label><f:message key="entities.hotel.city" /></label>
                        <s:text class="inputfield" name="quick_search_city" />
                        <s:errors field="quick_search_city">
                            <s:errors-header><ul></s:errors-header>
                            <li><s:individual-error /></li>
                            <s:errors-footer></ul></s:errors-footer>
                        </s:errors>
                    </div>
                    
                    <div class="form_row">
                        <label><f:message key="frontend.quick_search.maxPrice" /></label>
                        <s:text class="inputfield" name="quick_search_maxPrice" />
                        <s:errors field="quick_search_maxPrice">
                            <s:errors-header><ul></s:errors-header>
                            <li><s:individual-error /></li>
                            <s:errors-footer></ul></s:errors-footer>
                        </s:errors>
                    </div>
                    
                    <div class="form_row">
                        <label><f:message key="frontend.quick_search.minCapacity" /></label>
                        <s:text class="inputfield" name="quick_search_minCapacity" />
                        <s:errors field="quick_search_minCapacity">
                            <s:errors-header><ul></s:errors-header>
                            <li><s:individual-error /></li>
                            <s:errors-footer></ul></s:errors-footer>
                        </s:errors>
                    </div>                    
                    
                    <div class="cleaner_h20">&nbsp;</div>
                    <s:submit name="quickSearch"><f:message key="global.submit" /></s:submit>
                </s:form>
                <div class="cleaner">&nbsp;</div>
            </div> <!-- end of booking -->

            <div class="cleaner_h30">&nbsp;</div>
            <div class="cleaner_horizontal_divider_01">&nbsp;</div>
            <div class="cleaner_h30">&nbsp;</div>            
        </div> <!-- end of content left -->

        <div id="content_right">            
            <s:layout-component name="body" />
        </div> <!-- end of content right -->

        <div class="cleaner">&nbsp;</div>
    </div>
            
    <div id="templatemo_footer">
        Copyright © 2012 <a href="#"><strong>PA165</strong></a>
        <div style="clear: both; margin-top: 10px;"></div> 
    </div> <!-- end of footer -->
</div> <!-- end of container -->

</html>
</s:layout-definition>